﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;

namespace Timesheet.Domain
{

    [Table("tb_user")]
    public class User
    {
        public User()
        {
            Manager = false;
            Coordinator = false;
            TeamLead = false;
            Active = false;
        }
        [Key]
        public Int64 Id { get; set; }
        public string Username { get; set; }
        public string Password { get; set; }
        public string LastName { get; set; }
        public string FirstName { get; set; }

        [NotMapped] 
        public string FullName {
            get { return FirstName + " " + LastName; }
        }
        public bool Manager { get; set; }
        public bool Coordinator { get; set; }
        public bool TeamLead { get; set; }
        public bool Active { get; set; }
    }
}
